package model;

/**
  * @author Jagadeesh
 */
public class UserBean {

   private String userName ;
   private String dateOfBirth ;
   private String email ;
   private String phoneNo ;
   private String akun ;
   private String pass ;
   private String propinsi;
   private String propinsiid;
   //for validation error messages

   private String userNameError;
   private String dateOfBirthError;
   private String emailError;
   private String phoneNoError;
   private boolean isValid;
  //this is for action means edit or submit or delete or update
   
   private String idTabel,namaTabel,provinsi,kabupaten,kecamatan,desa;

  //this is for action means edit or submit or delete or update
   private String action;
   //construtor.it is invoked when we run jsp page.
   //so first time no values will display in jsp page
   public UserBean()  
    {
       userName ="";
       dateOfBirth ="";
       email="";
       phoneNo="";
       
       userNameError="";
       dateOfBirthError="";
       emailError="";
       phoneNoError="";
       akun="";
       pass="";

       
       action = "submit";
    }

    public String getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getPassword() {
        return pass;
    }

    public void setPassword(String pass) {
        this.pass = pass;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    //setter and getter methods for errors
    
    public String getUserNameError() {
         return userNameError;
    }

    public void setUserNameError(String userNameError) {
        this.userNameError = userNameError;
    }
    public String getDateOfBirthError() {
         return dateOfBirthError;
    }

    public void setDateOfBirthError(String dateOfBirthError) {
        this.dateOfBirthError = dateOfBirthError;
    }

    public String getEmailError() {
         return emailError;
    }

    public void setEmailError(String emailError) {
        this.emailError = emailError;
    }

    public String getPhoneNoError() {
        return phoneNoError;
    }

    public void setPhoneNoError(String phoneNoError) {
        this.phoneNoError = phoneNoError;
    }

    public boolean getIsValid() {
        return isValid;
    }
    public void setIsValid(boolean isValid) {
        this.isValid = isValid;
    }

    public String getAction() {
        return action;
    }
    public void setAction(String action) {
        this.action = action;
    }

    /**
     * @return the akun
     */
    public String getAkun() {
        return akun;
    }

    /**
     * @param akun the akun to set
     */
    public void setAkun(String akun) {
        this.akun = akun;
    }

    /**
     * @return the pass
     */
    public String getPass() {
        return pass;
    }

    /**
     * @param pass the pass to set
     */
    public void setPass(String pass) {
        this.pass = pass;
    }
    public String getPropinsi() {
        return propinsi;
    }
    public void setPropinsi(String propinsi) {
        this.propinsi = propinsi;
    }
    public String getPropinsiid() {
        return propinsiid;
    }
    public void setPropinsiid(String propinsiid) {
        this.propinsiid = propinsiid;
    }
     public String getKabupaten() {
        return kabupaten;
    }
     public void setKabupaten(String kabupaten) {
        this.kabupaten = kabupaten;
    }
     public String getKecamatan() {
        return kecamatan;
    }

    public void setKecamatan(String kecamatan) {
        this.kecamatan = kecamatan;
    }
     public String getDesa() {
        return desa;
    }

    public void setDesa(String desa) {
        this.desa = desa;
    }

    public String getIdTabel() {
        return idTabel;
    }

    public void setIdTabel(String idTabel) {
        this.idTabel = idTabel;
    }

    public String getNamaTabel() {
        return namaTabel;
    }

    public void setNamaTabel(String namaTabel) {
        this.namaTabel = namaTabel;
    }
 }
 
